﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="buyer_index.aspx.cs" Inherits="PeisongWeb.indexV2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>采购配送首页-采购配送系统</title>
    <!--#include file="/global.inc" -->
    <style type="text/css">
        #loft_win
        {
            font-family: "微软雅黑" ， "宋体" ，verdana,arial,helvetica,sans-serif;
            background-color: #c9d3f3;
            border: #a6b4cf 1px solid;
            color: #000;
        }
        #loft_win_min
        {
            border: #a6b4cf 1px solid;
        }
        .loft_win_head
        {
            font-size: 13px;
            background-color: #c3d9ff;
            height: 25px;
            padding: 0 5px 0 5px;
        }
         #contentdiv
        {
            border-left-style: none;
            border-right-style: none;
            font-size:14px;
            line-height:18px;
            height:98%;
            padding:10px 5px 0 5px;
            text-indent:2em;
        }
    </style>

    <script src="/app_common/scripts/jquery-cn.js" type="text/javascript"></script>

    <script src="/fromjs/jquery.floatfix.js" type="text/javascript"></script>

    <script type="text/javascript">
        var CUSTOMER_TYPE = "1";
    </script>

    <script src="/fromjs/sysUpgrade.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $("a[id^='area_']").bind("mouseover", function() {
                showHuodong($(this).attr("id"));
            });
            if ($("#marqueebox div").length > 1)
                startmarquee(36, 20, 3000);
        });
        var showHuodong = function(id) {
            $("img[id*='img_area_']").hide();
            $.each($("a[id^='area_']"), function(i, n) {
                var classname = $(n).attr("class");
                $(n).attr("class", classname.replace("active", ""));
            });
            $("#" + id).attr("class", $("#" + id).attr("class") + " active");
            $("#img_" + id).show();
        };
        function startmarquee(lh, speed, delay) {
            var p = false;
            var t;
            var sh;
            var o = document.getElementById("marqueebox");
            o.innerHTML += o.innerHTML;
            o.style.marginTop = 0;
            o.onmouseover = function() { p = true; }
            o.onmouseout = function() { p = false; }
            function start() {
                sh = o.offsetHeight;
                o.style.height = sh;
                t = setInterval(scrolling, speed);
                if (!p) o.style.marginTop = parseInt(o.style.marginTop) - 1 + "px";
            }
            function scrolling() {
                if (parseInt(o.style.marginTop) % lh != 0) {
                    o.style.marginTop = parseInt(o.style.marginTop) - 1 + "px";
                    if (Math.abs(parseInt(o.style.marginTop)) >= sh / 2) o.style.marginTop = 0;
                } else {
                    clearInterval(t);
                    setTimeout(start, delay);
                }
            }
            setTimeout(start, delay);
        }
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <uc1:headerV2 runat="server" ID="header1" />
        <div id="homemain">
            <div id="splash">
                <div id="splashInnerWrapper">
                    <div id="panel_who">
                        <asp:Repeater runat="server" ID="rpt_imgList">
                            <ItemTemplate>
                                <a href="http://<%#Eval("Url")%>" target="_blank">
                                    <img id="img_area_<%#Container.ItemIndex+1%>" src="../upload_files/original/<%#Eval("FileName") %>"
                                        width="905" />
                                </a>
                            </ItemTemplate>
                        </asp:Repeater>
                    </div>
                </div>
                <div id="splashNav">
                    <ul>
                        <asp:Repeater runat="server" ID="rpt_textList">
                            <ItemTemplate>
                                <li><a id="area_<%#Container.ItemIndex+1%>" class='<%#Convert.ToInt32(Container.ItemIndex+1)==1?"active":""%>'
                                    href="http://<%#Eval("Url")%>" target="_blank">
                                    <%#Eval("Text") %></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </div>
            <div class="splash_news" id="dv_sysInfo" runat="server">
                <div class="system_news">
                    <span>系统消息：</span>
                </div>
                <div class="system_news1">
                    <ul>
                        <asp:Repeater runat="server" ID="rpt_list2">
                            <ItemTemplate>
                                <li>
                                    <%--<a style="text-decoration: none" target="_blank" href='<%#Eval("Url").ToString()==""?"buyer_sysinfoDetails_"+Eval("HomeId")+".html":"http://"+Eval("Url")%>'>
                                    <%#Eval("Text").ToString().Length > 100 ? Eval("Text").ToString().Substring(0, 95) + "..." : Eval("Text").ToString()%></a>--%>
                                    <%#Eval("Text").ToString().Length > 100 ? Eval("Text").ToString().Substring(0, 95) + "..." : Eval("Text").ToString()%>
                                    <a target="_blank" href='<%#Eval("Url").ToString()==""?"buyer_sysinfoDetails_"+Eval("HomeId")+".html":"http://"+Eval("Url")%>'>
                                        查看</a><img style='<%#Convert.ToInt32(Container.ItemIndex)!=0?"display:none": ""%>;
                                            padding-left: 10px' src="/app_common/images/hot.gif" />
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <div style="float: left; clear: both; width: 937px; height: 1px; border-top: 0px dashed #666666;">
                </div>
            </div>
        </div>
        <uc1:footerV2 runat="server" ID="footer1" />
    </div>
    <!--提示窗口代码开始-->
    <!--初状态-->
    <div id="loft_win" style="z-index: 99999; left: 0; display: none; width: 250px; position: absolute;
        top: 0; height: 238px;">
        <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#ffffff" border="0">
            <tr>
                <td width="100%" valign="top" align="center">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="70" class="loft_win_head">
                                系统提示
                            </td>
                            <td width="26" class="loft_win_head">
                            </td>
                            <td align="right" class="loft_win_head">
                                <span style="cursor: pointer; font-size: 12px; font-weight: bold; margin-right: 4px;"
                                    title="最小化" class="floatfix_min">＿</span><span style="cursor: pointer; font-size: 12px;
                                        font-weight: bold; margin-right: 4px;" title="关闭" class="floatfix_cls">×</span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="205" align="center" colspan="3">
                    <div id="contentdiv">
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <!--最小化状态-->
    <div id="loft_win_min" style="z-index: 99999; left: 0; display: none; width: 250px;
        position: absolute; top: 0;">
        <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#ffffff" border="0">
            <tr>
                <td width="100%" valign="top" align="center">
                    <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td width="70" class="loft_win_head">
                                系统提示
                            </td>
                            <td width="26" class="loft_win_head">
                            </td>
                            <td align="right" class="loft_win_head">
                                <span title="还原" style="cursor: pointer; font-size: 12px; font-weight: bold; margin-right: 4px;"
                                    class="floatfix_max">□</span><span title="关闭" style="cursor: pointer; font-size: 12px;
                                        font-weight: bold; margin-right: 4px;" class="floatfix_cls">×</span>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <!--提示窗口代码结束-->
    </form>
</body>
</html>

